package com.atguigu.mybatis021.excption;

import lombok.Getter;

@Getter
public enum BusiEexctionEnum {
    USER_NOT_EXIST(500,"用户不存在"),
    USER_NOT_LOGIN(501,"用户未登录"),
    USER_PASSWORD_ERROR(502,"密码错误"),
    USER_EXIST(506,"用户已存在"),
    ORDER_NOT_EXIST(503,"订单不存在"),
    ORDER_PAY(504, "订单已支付"),
    EMP_NOT_EXIST(505,"员工不存在");

    private final int code;
    private final String message;

    BusiEexctionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
